/*
Copyright 2013 CaboLabs.com

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

This software was developed by Pablo Pazos at CaboLabs.com

This software uses the openEHR Java Ref Impl developed by Rong Chen
http://www.openehr.org/wiki/display/projects/Java+Project+Download

This software uses MySQL Connector for Java developed by Oracle
http://dev.mysql.com/downloads/connector/j/

This software uses PostgreSQL JDBC Connector developed by Posrgresql.org
http://jdbc.postgresql.org/

This software uses XStream library developed by Jörg Schaible
http://xstream.codehaus.org/
*/
package domain

import hce.core.composition.Composition
import workflow.WorkFlow

/**
 * Analogo a Folder de openEHR, customizado/simplificado para las funcionalidades de EHRGen.
 */
class Domain {

   // por ahora no es i18n
   String name

   // true si fue creado por un usuario admin
   // false si es creado por defecto en bootstrap
   boolean userDefined = true
   
   List compositions = []
   List workflows = []   // Se puede tener un workflow distinto para cada rol
   static hasMany = [compositions: Composition, workflows: WorkFlow]
}